//
//  NetworkTools.swift
//  sinaWeibo
//
//  Created by 张国梁 on 16/4/9.
//  Copyright © 2016年 CoderGL. All rights reserved.
//

import AFNetworking

class NetworkTools: AFHTTPSessionManager {
    
    
    static let instance : NetworkTools = {
        // 注意：baseURL一定要以/结尾
        let instance = NetworkTools(baseURL: NSURL(string: "https://api.weibo.com/"))
        
        instance.responseSerializer.acceptableContentTypes = NSSet(objects: "application/json", "text/json", "text/javascript", "text/plain") as? Set<String>
        
        return instance
    }()
    
    class func shareNetworkTools() -> NetworkTools {
       return instance
    }
    
  
    
}
